package iframe;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.lang.reflect.Method;

public class MyFrame {
	
/**
 * 
 * @param args
 * @throws Exception 
 */

	public static void main(String[] args) throws Exception {
		BufferedReader bReader=new BufferedReader(new FileReader("src/config.txt"));
		String className=bReader.readLine();
		String methodName=bReader.readLine();
		Class clazz= Class.forName(className);
		Method method = clazz.getMethod(methodName, null);
		method.invoke(clazz.newInstance(), null);
	}
}
